package ms.maplestory.boot.client.character.quest.progress;

public enum QuestProgressRequirementType {

    ITEM(0),
    LEVEL(1),
    MOB(2),
    MONEY(3);

    private byte value;

    QuestProgressRequirementType(int value) {
        this.value = (byte) value;
    }

    public byte getValue() {
        return value;
    }

    public static QuestProgressRequirementType getQPRTByObj(Object o) {
        return o instanceof QuestProgressItemRequirement ? ITEM :
                o instanceof QuestProgressLevelRequirement ? LEVEL :
                        o instanceof QuestProgressMobRequirement ? MOB :
                                o instanceof QuestProgressMoneyRequirement ? MONEY : null;
    }

}
